/**
 * 项目主页列表页面
 * @author Hpboys
 * @version 1.0.0
 */
define(function (require, exports, module) {

    var util = require('util');
    //页面请求域
    var _scope = {
        methods: {
            synUser: function() {
                $.ajax({
                    url: "/svnadmin/synUser",
                    type: 'post',
                    contentType: 'application/json',
                    dataType: 'text',
                    async: true, // 异步
                    success: function (result) {
                        result = JSON.parse(result);
                        util.showMsg(result.info, 1)
                    },
                    error: function (result) {
                        util.showMsg(result, 4)
                    }
                });
            }
        }
    }

    //暴露方法到Window
    window.synUser = _scope.methods.synUser;

})